<template>
  <div id="profile">
    <nav-bar class="profile-nav">
      <div slot="center">我的</div>
    </nav-bar>
    <user-info />

    <div class="account">
      <div class="account-item">
        <div class="number">
          <span class="balance">0.00</span>元
        </div>
        <div class="account-info">我的余额</div>
      </div>
      <div class="account-item">
        <div class="number">
          <span class="balance">0</span>个
        </div>
        <div class="account-info">我的优惠</div>
      </div>
      <div class="account-item">
        <div class="number">
          <span class="balance">0</span>分
        </div>
        <div class="account-info">我的积分</div>
      </div>
    </div>

    <div class="message me">我的消息</div>
    <div class="cart me">我的购物车</div>
    <div class="set me">设置</div>
  </div>
</template>

<script>
import NavBar from "@/components/common/navbar/NavBar";
import UserInfo from "./childCmps/UserInfo";
export default {
  name: "Home",
  components: {
    NavBar,
    UserInfo,
  },
  data() {
    return {};
  },
};
</script>

<style scoped>
#profile {
  font-size: 16px;
}

.profile-nav {
  background-color: var(--color-tint);
  color: #fff;
}

.account {
  display: flex;
  justify-content: space-between;
}

.account-item {
  background-color: #fff;
  margin-right: 1px;
  text-align: center;
}
.account-item:last-of-type {
  margin-right: 0;
}
.account-item {
  color: #666;
  font-size: 13px;
  padding: 15px;
}
.account-item .balance {
  font-size: 24px;
  font-weight: 550;
  margin-right: 3px;
  color: #ff5f3e;
}
.account-info {
  margin-top: 6px;
}

.me {
  height: 45px;
  line-height: 45px;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  margin: 0 10px;
}
</style>
